package com.member.shop.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.member.common.annotation.Excel;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.experimental.SuperBuilder;
import com.member.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 推荐分类与商品管理对象 sys_biz_recommend_goods
 *
 * @author lixinchen
 * @date 2025-01-08
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_recommend_goods")
public class SysBizRecommendGoods extends BaseEntity {

private static final long serialVersionUID=1L;


    /**
     * 唯一id
     */
     @TableId(type = IdType.AUTO)
     private Long id;


    /**
     * 推荐分类id
     */
     @Excel(name = "推荐分类id")
     private Long recommendCategoryId;


    /**
     * 商品id
     */
     @Excel(name = "商品id")
     private Long goodsId;


    /**
     * 排序
     */

    private Integer orderNum;



    /**
     * 推荐开始时间
     */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @Excel(name = "推荐开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime recommendStartTime;


    /**
     * 推荐截止时间
     */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @Excel(name = "推荐截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime recommendEndTime;


    /**
     * 是否删除(0：未删除，1：删除)
     */
     @Excel(name = "是否删除(0：未删除，1：删除)")
     private Integer deleted;



     @TableField(exist = false)
    private SysBizGoods goods;

}
